package com.swallow.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("payment")
public class Payment {
    @TableId(type = IdType.AUTO)
    private Long paymentId;
    private String paymentNo;
    private Long orderId;
    private Long userId;
    private BigDecimal amount;
    private Integer channel;  // 使用枚举更佳
    private Integer status;
    private String transactionId;
    private Date createTime;
    private Date payTime;
}